/*
 * Copyright (c) 2010-2011 GOV.
 * [Id:EntityManagerFactory.java  11-8-27 下午10:50 poplar.mumu ]
 */
package org.jboss.seam.transaction;

import org.jboss.seam.solder.core.ExtensionManaged;

import javax.enterprise.context.ConversationScoped;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceUnit;

/**
 * <p>
 *     用于产生EntityManager的生成器
 * </p>
 *
 * @author poplar.mumu
 * @version 1.0 11-8-27 下午10:50
 * @since JDK 1.5
 */
@SuppressWarnings({"CdiUnproxyableBeanTypesInspection"})
public class PersistenceContextProvider {

    @ExtensionManaged
    @Produces
    @PersistenceUnit(unitName = "pfdbunit")
    @ConversationScoped
    EntityManagerFactory producerField;
}
